package com.basic.business.finance.domain;

import java.math.BigDecimal;
import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 【请填写功能名称】对象 t_money_details
 * 
 * @author zhaoxy_jn@163.com
 * @date 2025-07-08
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TMoneyDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 主表id */
    @ExcelProperty(value = "主表id")
    private String mainId;

    /** 收入金额 */
    @ExcelProperty(value = "收入金额")
    private BigDecimal incomeAmount;

    /** 支出金额 */
    @ExcelProperty(value = "支出金额")
    private BigDecimal expenditureAmount;

    /** 业务类型 */
    @ExcelProperty(value = "业务类型")
    private String businessType;

    /** 业务类型备注 */
    @ExcelProperty(value = "业务类型备注")
    private String businessTypeRemark;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
